# -*- coding: utf-8 -*-

from django.db import models
from core.models import CoreModel, table_prefix


class Notice(CoreModel):
    title = models.CharField(max_length=64, verbose_name="公告标题")
    type = models.CharField(max_length=32, verbose_name="公告类型")
    content = models.TextField(null=True, blank=True, verbose_name="公告内容")

    class Meta:
        db_table = table_prefix + "system_notice"
        verbose_name = "系统公告"
        verbose_name_plural = verbose_name
        ordering = ("-create_time",)
